package com.klz.iblog.dao;

import com.klz.iblog.pojo.SelfUserDetails;
import com.klz.iblog.pojo.User;

public interface UserMapper {

    /**
     * 根据username,获取用户信息
     * @param username
     * @return
     */
    SelfUserDetails getUser(String username);

    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}